package com.yj.web.util;

import java.io.Serializable;

/**
 * 所有web输出的基类，现在只用来转换成JSON格式
 * Employee: yesiming
 * Date: 13-11-6
 * Time: 下午2:57
 * To change this template use File | Settings | File Templates.
 */
public class BaseWebResult implements Serializable {

    private static final long serialVersionUID = 1L;

    // 默认为0，表示成功
    private int cd;

    private String msg;

    private Object data;

    public BaseWebResult() {
        cd = 0;
        msg = null;
    }

    public int getCd() {
        return cd;
    }

    public void setCd(int cd) {
        this.cd = cd;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
